﻿@model Logistics.Web.Models.Order.ShippingOptionModel
@using Nop.Core.Domain.Common
@using Nop.Core.Domain.Orders

@if (Model.IsGiftCardApplied && !String.IsNullOrEmpty(Model.GiftCardCode))
{
    <table>
        <tbody>
            <tr><td>@Model.GiftCardCode</td><td>The first package of this order is free. You may not declare any insurance for this package.</td></tr>
        </tbody>
    </table>
    <input type="button" value="Remove" class="btn btn-primary giftcard-remove" data-action="giftCard" data-url="@Url.Action("RemoveGiftCard", "Order")" />
}
else
{
    <p>You may apply your SpotsHUB Express coupon or gift card code below.</p>
    @Html.TextBoxFor(model => model.GiftCardCode, new { @class = "form-control" })<br />
    <input type="button" value="Apply Code" class="btn btn-primary giftcard-add" data-action="giftCard" data-url="@Url.Action("AddGiftCard", "Order")" />
}
